//不允许为空
const RULE_REQUIRED = { required: true, message: '不允许为空!' }
//只能包含数字
const RULE_NUMBER = { pattern: /^[0-9]*$/, message: '只能包含数字!' }
// 数组
const RULE_ARRAY = { type: 'array', required: true, message: '不允许为空!'}

//只能包含数字
const RULE_NUMBER_REQUIRED= { required: true, pattern: /^[0-9]*$/, message: '只能包含数字!' }
//车牌号
const RULE_LICENSE = { pattern: /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1}$/, message: '车牌号不标准!' }

export { RULE_REQUIRED, RULE_NUMBER, RULE_ARRAY, RULE_LICENSE, RULE_NUMBER_REQUIRED }